import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home'
import empty from '@/views/empty'
import { homedir } from 'os'

Vue.use(Router)

export default new Router({
  routes: [
     // two
     {
      path: '/',
      name: 'TWO', //一级菜单名称  报警日志
      component: Home,
      number: 10001, //区块编号
      icon: 'el-icon-bell', //一级菜单名称
      hidden: false, //是否显示
      children: [
        { 
          path: '/two/one',
          component: (resolve) => require(['@/views/two/one.vue'], resolve),
          hidden: false, //是否显示
          name: '/2two/1one看', //二级菜单名称  报警信息查询
          icon: 'el-icon-document', //二级菜单图标
        },    
        { 
          path: '/two/two',
          component: (resolve) => require(['@/views/two/two.vue'], resolve),
          hidden: false, //是否显示
          name: '2two/2two', //二级菜单名称  报警信息查询
          icon: 'el-icon-document', //二级菜单图标 
          children: [
            { 
              path: '/two/one',
              component: (resolve) => require(['@/views/two/one.vue'], resolve),
              hidden: false, //是否显示
              name: '/2two/1one', //二级菜单名称  报警信息查询
              icon: 'el-icon-document', //二级菜单图标
            },    
            { 
              path: '/two/two',
              component: (resolve) => require(['@/views/two/two.vue'], resolve),
              hidden: false, //是否显示
              name: '2two/2two三级菜单', //二级菜单名称  报警信息查询
              icon: 'el-icon-document' //二级菜单图标 
            },    
          ]
        },    
      ]
    },
    // three
     // two
     {
      path: '/',
      name: 'THREE', //一级菜单名称  报警日志
      component: Home,
      number: 10001, //区块编号
      icon: 'el-icon-bell', //一级菜单名称
      hidden: false, //是否显示
      children: [
        {
          path: '/',
          component: empty,
          hidden: false, //是否显示
          name: '燃烧', //二级菜单名称  报警信息查询
          icon: 'el-icon-document', //二级菜单图标
          children: [
            { 
              path: '/three/one',
              component: (resolve) => require(['@/views/two/one.vue'], resolve),
              hidden: false, //是否显示
              name: '3two/one', //二级菜单名称  报警信息查询
              icon: 'el-icon-document' //二级菜单图标 
            },    
            { 
              path: '/three/two',
              component: (resolve) => require(['@/views/two/two.vue'], resolve),
              hidden: false, //是否显示
              name: '3two/two', //二级菜单名称  报警信息查询
              icon: 'el-icon-document' //二级菜单图标 
            },    
          ] 
        },    
        {
          path: '/',
          component: empty,
          hidden: false, //是否显示
          name: '青春', //二级菜单名称  报警信息查询
          icon: 'el-icon-document', //二级菜单图标
          children: [
            { 
              path: '/one/three',
              component: (resolve) => require(['@/views/one/one.vue'], resolve),
              hidden: false, //是否显示
              name: '3two/one', //二级菜单名称  报警信息查询
              icon: 'el-icon-document' //二级菜单图标 
            },    
            { 
              path: '/one/three',
              component: (resolve) => require(['@/views/one/two.vue'], resolve),
              hidden: false, //是否显示
              name: '3two/two', //二级菜单名称  报警信息查询
              icon: 'el-icon-document' //二级菜单图标 
            },    
          ] 
        },    
        
      ]
    },
    //one
    {
      path: '/',
      name: 'ONE', //一级菜单名称  报警日志
      component: Home,
      number: 10001, //区块编号
      icon: 'el-icon-bell', //一级菜单名称
      hidden: false, //是否显示
      children: [
        { 
          path: '/one/one',
          component: (resolve) => require(['@/views/one/one.vue'], resolve),
          hidden: false, //是否显示
          name: '1one/1one', //二级菜单名称  报警信息查询
          icon: 'el-icon-document' //二级菜单图标 
        },    
        { 
          path: '/one/two',
          component: (resolve) => require(['@/views/one/two.vue'], resolve),
          hidden: false, //是否显示
          name: '1one/2two', //二级菜单名称  报警信息查询
          icon: 'el-icon-document' //二级菜单图标 
        }
      ]
    },
    {
      path: '/',
      name: 'dan', //一级菜单名称  报警日志
      component: Home,
      number: 10001, //区块编号
      icon: 'el-icon-bell', //一级菜单名称
      hidden: false, //是否显示
      children: [
        { 
          path: '/dan/dan',
          component: (resolve) => require(['@/views/dan/dan.vue'], resolve),
          hidden: false, //是否显示
          name: '1one/1one', //二级菜单名称  报警信息查询
          icon: 'el-icon-document' //二级菜单图标 
        }
      ]
    },
   
    
  ]
})
